class CreateAdminArticles < ActiveRecord::Migration
  def change
    create_table :articles do |t|
      t.integer :publish_id
      t.text :content
      t.string :picture
      t.integer :praise_num
      t.integer :comment_num
      t.integer :state

      t.timestamps null: false
    end
  end
end
